package com.jd.mysql.mgr.service;

import java.util.List;

import com.jd.mysql.mgr.pojo.MgrAccount;
import com.jd.mysql.mgr.pojo.MgrAccountGroup;

public interface IMgrAccountService {
	/**
	 * @deprecated
	 */
	public boolean login(String username,String password,String ip);
	public void updateMgrAccount(MgrAccount mgraccount);
	public void addAccount(MgrAccount mgraccount);
	public void deleteAccount(MgrAccount mgraccount);
	public MgrAccount findMgrAccountById(Integer id);
	public MgrAccount findMgrAccountByUserName(String username);
	public List<MgrAccount> getAccountList(Integer start,Integer limit,Integer groupId);
	public MgrAccount findMgrAccountByUsernameAndPassword(String username,String password);
	public List<MgrAccountGroup> getMgrAccountGroupList();
	public Long getAccountTotalCount(Integer groupId,Boolean enable);
	
	public MgrAccountGroup findMgrAccountGroupById(Integer id);
	public MgrAccountGroup findMgrAccountGroupByGroupName(String groupName);
	public void saveMgrAccountGroup(MgrAccountGroup mgra);
	public void deleteMgrAccountGroup(MgrAccountGroup mgra);
	public void updateMgrAccountGroup(MgrAccountGroup mgra);
}
